import 'package:flutter/material.dart';

class TitleTag extends StatelessWidget {

  const TitleTag({
    required this.title,
    this.tagIcon = Icons.expand_circle_down_outlined,
    this.tagColor = Colors.black,
    this.fontColor = Colors.black54,
  });

  final String title;
  final IconData tagIcon;
  final Color tagColor;
  final Color fontColor;


  @override
  Widget build(BuildContext context) {

    return Container(
      margin: const EdgeInsets.fromLTRB(8, 8, 8, 8),
      padding: const EdgeInsets.fromLTRB(8, 0, 0, 0),
      decoration: BoxDecoration(
        border: Border(
          left: BorderSide(color: tagColor, width: 10),
          // top: BorderSide(color: Colors.blue, width: 5),
          // right: BorderSide(color: Colors.orange, width: 5),
          // bottom: BorderSide(color: Colors.green, width: 5),
        ),
        // borderRadius: BorderRadius.circular(20),
      ),
      child: Row(
        // mainAxisAlignment: MainAxisAlignment.spaceBetween,
        children: [
          Icon(tagIcon,size: 20,color: tagColor),
          const SizedBox(width: 5,),
          Text(title,style: TextStyle(color: fontColor, fontSize: 15),)
        ],
      ),
    );
  }
}
